function checkDelete(url , content, id) {
    
    
    if (confirm('Really delete?')) {
        $.ajax({
            type: "DELETE",
            url: url + "/" + id,
            success: function() {
                alert('deleted');
                $('#' + content + '' + id).remove();
            }
        });
    }
}

function googleLoader(div , q){
    console.log(window.location.origin);
    $.get("http://localhost:8000/ajax/google", {query : q} ,  function( data ) {
        $('#'+div).html( data );
    });
}

function urlLoader(div , q){
    console.log(window.location.origin);
    
    $.get("http://localhost:8000/ajax/url", {query : q} ,  function( data ) {
        $('#'+div).html( data );
    });
}